from fastapi import APIRouter
from app.routers.goods_router import router as goods_router
from app.routers.warehouse_router import router as warehouse_router
from app.routers.warehouse_goods_router import router as warehouse_goods_router

# 创建API版本路由组
api_router = APIRouter(prefix="/api/v1")

# 注册子路由，添加更多元数据
api_router.include_router(
    goods_router,
    prefix="/goods",
    tags=["Goods Management"],
    responses={404: {"description": "Not found"}},
)

api_router.include_router(
    warehouse_router,
    prefix="/warehouses",
    tags=["Warehouse Management"],
    responses={404: {"description": "Not found"}},
)

api_router.include_router(
    warehouse_goods_router,
    prefix="/warehouse-goods",
    tags=["Inventory Management"],
    responses={404: {"description": "Not found"}},
)
